package com.yc.chaoshi.cs_order.controller;


import com.yc.chaoshi.cs_order.mapper.PmsFenlei2Mapper;
import com.yc.chaoshi.cs_order.mapper.PmsFenlei3Mapper;
import com.yc.chaoshi.entity.PmsFenlei2;
import com.yc.chaoshi.entity.PmsFenlei3;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xz
 * @since 2022-08-04
 */
@RestController
@RequestMapping("/chaoshi/pmsFenlei3")
public class PmsFenlei3Controller {
    @Resource
    private PmsFenlei3Mapper pmsFenlei3Mapper;

    @RequestMapping("findByCid")
    public PmsFenlei3 findById(@RequestParam int cid){
        return pmsFenlei3Mapper.selectById(cid);
    }

    @RequestMapping("queryAll3")
    List<PmsFenlei3> queryAll3(@RequestParam int cid){
        return pmsFenlei3Mapper.selectAll3(cid);
    }
}

